package cn.tedu.project.oa.announcement.mapper;

import cn.tedu.project.oa.announcement.pojo.dto.AnnouncementQuery;
import cn.tedu.project.oa.announcement.pojo.dto.AnnouncementSaveParam;
import cn.tedu.project.oa.announcement.pojo.entity.Announcement;
import cn.tedu.project.oa.announcement.pojo.vo.AnnouncementVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AnnouncementMapper {


    List<AnnouncementVO> selectList(AnnouncementQuery announcementQuery);

    AnnouncementVO selectById(Long id);

    void insert(Announcement announcement);

    void deleteById(Long id);

    Integer selectCount(AnnouncementQuery announcementQuery);
}
